<?php 

if($_POST['submit']){
	include "Uploader.class.php";
    //上传图片框中的描述表单名称，
    $title = htmlspecialchars('test_title');

    //上传配置
    $config = array(
        "savePath" => "../../../img/uimg/201301/31/4",
        "maxSize" => 1000, //单位KB
        "allowFiles" => array(".gif", ".png", ".jpg", ".jpeg", ".bmp")
    );

    //生成上传实例对象并完成上传
    $up = new Uploader("upfile", $config);

	print_r($up);
}
?>


<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="upfile" />
<input type="submit" name="submit" value="submit" />

</form>